# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname="xfce4-statusnotifier-plugin"
pkgver="0.2.2"
pkgrel=0
pkgdesc="Panel area status notifier plugin for Xfce4"
url="https://docs.xfce.org/panel-plugins/xfce4-statusnotifier-plugin"
arch="all !mips !mips64" # blocked by libxfce4ui-dev
license="GPL-2.0-only"
makedepends="glib-dev libxfce4ui-dev xfce4-panel-dev libdbusmenu-gtk3-dev"
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/xfce4-statusnotifier-plugin/${pkgver%.*}/xfce4-statusnotifier-plugin-$pkgver.tar.bz2"
builddir="$srcdir/xfce4-statusnotifier-plugin-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="76f719ffed4ec9e178a844173cb0728888beba9a1ad69c9da025cb2d1fb3ad18448b4b4a60a94bb329ec7b80760307000550d451859c33f4b5d7bb8590cf227d  xfce4-statusnotifier-plugin-0.2.2.tar.bz2"
